//inserting values into array type column using Statement.
import java.sql.*;
class JdbcDemo27 {

	public static void main(String[] args) throws Exception{
		Class.forName("oracle.jdbc.driver.OracleDriver");
		Connection cn = DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe","kushwaha","oracle");
		Statement st = cn.createStatement();
		int count = st.executeUpdate("insert into stud values('sita',coursetype('.net','sqlserver'))");
		System.out.println(count+   "rows inserted");
		cn.close();
		st.close();
		// TODO Auto-generated method stub

	}

}
